<%--
  Created by IntelliJ IDEA.
  User: Htao
  Date: 2018/5/4
  Time: 15:30
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

    <meta charset="UTF-8">
    <title>客户修改页面</title>
    <style type="text/css">
        html {
            background-color: aqua;
        }

        .login {
            position: absolute;
            top: 50%;
            left: 50%;
            margin: -150px 0 0 -150px;
            width: 300px;
            height: 300px;
        }

        .login h1 {
            color: #fff;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.96);
            letter-spacing: 1px;
            text-align: center;
        }

        input {

            margin-bottom: 10px;
            background: rgba(0, 0, 0, 0.3);
            border: none;
            outline: none;
            padding: 10px;
            font-size: 13px;
            color: #fff;
        }

    </style>
    <script>


    </script>
</head>
<body>
<div class="login">
    <h1>客户修改信息页面</h1>

    <form action="${pageContext.request.contextPath }/user/updateUser" method="post">


        <td style="padding-left: 30px">
            用户名:
        </td>
        <td>
            <input type="text" name="username" id="username" value="${user.username}" style="width: 100%"/>
        </td>


        <td style="padding-left: 30px">
            年龄:
        </td>

        <td>
            <input type="text" name="age" id="age" value="${user.age}" style="width: 100%"/>
        </td>

        <td style="padding-left: 30px">性别:</td>
        <td>
            <input type="radio" <c:if test="${user.sex == 'male'}">checked</c:if>  name="sex" value="male" >男
            <input type="radio" <c:if test="${user.sex == 'female'}">checked</c:if> name="sex" value="female"/>女
        </td>
        <br>

        <td style="padding-left:30px">密码:</td>

        <td>
            <input type="password" name="password" id="password" value="${user.password}"
                   style="width: 100%"/>
        </td>
        <td>
            <input type="hidden" name="id" value="${user.id}">
        </td>

        <td><input type="submit" value="修改">
        </td>

    </form>


</div>
</body>
</html>
